<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%@page import="avicit.platform6.core.locale.PlatformLocalesJSTL"%>
<%@page import="java.util.Locale"%>
<%@page import="avicit.platform6.api.session.SessionHelper"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page import="avicit.platform6.commons.utils.ViewUtil"%>
<%@ taglib prefix="sec"
	uri="/WEB-INF/tags/shiro.tld"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>字段对应设置</title>
<base href="<%=ViewUtil.getRequestPath(request)%>">
<%@page import="avicit.platform6.api.sysshirolog.impl.AfterLoginSessionProcess"%>
<%
Object lang=session.getAttribute(AfterLoginSessionProcess.SESSION_CURRENT_LANGUAGE_CODE);
String languageCode="zh_CN";
if(lang!=null){
	languageCode=lang.toString();
}
	Locale locale =SessionHelper.getLocaleByUser(request);
%>

<jsp:include
	page="/avicit/platform6/component/common/EasyUIJsInclude.jsp"></jsp:include>
<script type="text/javascript"
	src="avicit/im/lantop/basic/fieldmapset/LantopFieldMapSetManage.js"></script>
<jsp:include page="/avicit/im/common/ImUIJSCSSInclude.jsp"></jsp:include>
<script type="text/javascript"
	src="avicit/im/lantop/basic/fieldmapset/locale/language_<%=languageCode%>.js"></script>
    <link href="static/css/custom/lantop/css/custom.css" type="text/css"  rel="stylesheet">
	<script type="text/javascript" src="static/js/platform/index/js/divscroll.js" ></script>
	<style>
	.datagrid-cell-check,.datagrid-header-check{
	  width:25px !important;
	}
	</style>
</head>
<body class="easyui-layout" data-options="fit:false">
	<script type="text/javascript">
	var baseurl = '<%=request.getContextPath()%>';
		$(function() {
			$('#mapSetAddForm').linkbutton('disable');
			$('#mapSetEditForm').linkbutton('disable');
			$('#deleteMapSet').linkbutton('disable');
			$('#conditionSet').linkbutton('disable');

            if (navigator.userAgent.indexOf("Chrome") > -1) {} else {
                $(".thin_scroll").perfectScrollbar();
            }
		});

	$(window).resize(function(){
		setTimeout(function(){
			$("#FormMapSetDialog").dialog('resize',{
				width:$(window).width(),
				height:$(window).height()
			});
		},300)
	});
	</script>
</head>
<body class="easyui-layout" data-options="fit:false">
	<%-- 分类树 --%>
	<div id="trees" class="thin_scroll" data-options="region:'west',split:true,title:'<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fieldmapset.classifyTree","i18n.lantop",locale)%>', collapsible: true" style="width: 250px;">
		<ul id="classTree" class="easyui-tree "></ul>
	</div>
	<div data-options="region:'center'">
		<div id="tb" style="padding:10px 5px;">
			<sec:accesscontrollist hasPermission="3"
				domainObject="LantopFieldMapSetManage_button_mapSetForm">
				<%-- 设置对应 --%>
				<%-- <a class="easyui-linkbutton" plain="true" iconCls="icon-im-add"
					onclick="mapSetForm('add');" href="javascript:void(0);"
					id="mapSetAddForm"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fieldmapset.table.button.setMap","i18n.lantop",locale)%></a> --%>
				<a id="mapSetAddForm" onclick="mapSetForm('add');" href="javascript:void(0)" class="easyui-linkbutton selbtn"  style="    margin-left: 20px;">
				<img src="avicit/im/lantop/common/search/image/icon_tool35_blue.png"><span class="selbtc"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fieldmapset.table.button.setMap","i18n.lantop",locale)%></span></a>
			</sec:accesscontrollist>
			<sec:accesscontrollist hasPermission="3"
				domainObject="LantopFieldMapSetManage_button_mapSetForm">
				<%-- 编辑 --%>
				<%-- <a class="easyui-linkbutton" plain="true" iconCls="icon-im-edit"
					onclick="mapSetForm('edit');" href="javascript:void(0);"
					id="mapSetEditForm"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fieldmapset.table.button.edit","i18n.lantop",locale)%></a> --%>
				<a id="mapSetEditForm" onclick="mapSetForm('edit');" href="javascript:void(0)" class="easyui-linkbutton selbtn">
				<img src="avicit/im/lantop/common/search/image/icon_tool30_blue.png"><span class="selbtc"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fieldmapset.table.button.edit","i18n.lantop",locale)%></span></a>
			</sec:accesscontrollist>
			<sec:accesscontrollist hasPermission="3"
				domainObject="LantopFieldMapSetManage_button_deleteMapSet">
				<%-- 删除 --%>
				<%-- <a class="easyui-linkbutton" plain="true" iconCls="icon-im-remove"
					onclick="deleteMapSet();" href="javascript:void(0);"
					id="deleteMapSet"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fieldmapset.table.button.delete","i18n.lantop",locale)%></a> --%>
				<a id="deleteMapSet" onclick="deleteMapSet();" href="javascript:void(0)" class="easyui-linkbutton selbtn">
				<img src="avicit/im/lantop/common/search/image/icon_tool835_blue.png"><span class="selbtc"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fieldmapset.table.button.delete","i18n.lantop",locale)%></span></a>
			</sec:accesscontrollist>
			<sec:accesscontrollist hasPermission="3"
				domainObject="LantopFieldMapSetManage_button_conditionSet">
				<%-- 条件设置 --%>
				<%-- <a class="easyui-linkbutton" plain="true" iconCls="icon-im-auth"
					onclick="conditionSet();" href="javascript:void(0);"
					id="conditionSet"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fieldmapset.table.button.conditionSet","i18n.lantop",locale)%></a> --%>
				<a id="conditionSet" onclick="conditionSet();" href="javascript:void(0)" class="easyui-linkbutton selbtn">
				<img src="avicit/im/lantop/common/search/image/icon_tool35_blue.png"><span class="selbtc"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fieldmapset.table.button.conditionSet","i18n.lantop",locale)%></span></a>
			</sec:accesscontrollist>
		</div>
		<table id="lantopFieldMapSetDataGrid" class="easyui-datagrid"
			data-options="
					rownumbers: true,
					animate: true,
					collapsible: false,
					fitColumns: true,
					autoRowHeight: false,
					singleSelect: false,
					pagination:true,
					pageSize:20, 
					pageList:[20,30,50], 
		    		striped:true,
					fit:true,
					scrollbarSize:0,
					method: 'post',
					toolbar: '#tb',
					url: 'platform/LantopFieldMapSetController/getLantopFieldMapSetData.json'
				">
			<thead>
				<tr>
					<sec:accesscontrollist hasPermission="3"
						domainObject="LantopFieldMapSetManage_datagrid_ID">
						<th data-options="field:'ID', halign:'center',checkbox:true"
							title="主键ID" width="20">主键ID</th>
					</sec:accesscontrollist>
					<sec:accesscontrollist hasPermission="3"
						domainObject="LantopFieldMapSetManage_datagrid_SOURCE_TABLE_TITLE">
						<%-- 源表名 --%>
						<th
							data-options="field:'SOURCE_TABLE_TITLE', halign:'center', align:'center', sortable:false,editor:{type:'text'}"
							width="100" title="源表名"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fieldmapset.table.sourceTableName","i18n.lantop",locale)%></th>
					</sec:accesscontrollist>
					<sec:accesscontrollist hasPermission="3"
						domainObject="LantopFieldMapSetManage_datagrid_TGT_TABLE_TITLE">
						<%-- 目标表名 --%>
						<th
							data-options="field:'TGT_TABLE_TITLE', halign:'center', align:'center', sortable:false,editor:{type:'text'}"
							width="100" title="目标表名"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fieldmapset.table.targetTableName","i18n.lantop",locale)%></th>
					</sec:accesscontrollist>
					<sec:accesscontrollist hasPermission="3"
						domainObject="LantopFieldMapSetManage_datagrid_TGT_TABLE_NAME_EN">
						<th
							data-options="field:'TGT_TABLE_NAME_EN', hidden:true, halign:'center', align:'center', sortable:false,editor:{type:'text'}"
							width="100" title="目标表英文名">目标表英文名</th>
					</sec:accesscontrollist>
					<sec:accesscontrollist hasPermission="3"
						domainObject="LantopFieldMapSetManage_datagrid_TGT_TABLE_IS_TRUE_TABLE">
						<th
							data-options="field:'TGT_TABLE_IS_TRUE_TABLE', hidden:true, halign:'center', align:'center', sortable:false,editor:{type:'text'}"
							width="100" title="目标表是否真实表">目标表是否真实表</th>
					</sec:accesscontrollist>
					<sec:accesscontrollist hasPermission="3"
						domainObject="LantopFieldMapSetManage_datagrid_ARCHIVE_CLASS_NODE_NAME">
						<%-- 目标节点 --%>
						<th
							data-options="field:'ARCHIVE_CLASS_NODE_NAME', halign:'center', align:'center', sortable:false,editor:{type:'text'}"
							width="100" title="目标节点"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fieldmapset.table.targetNode","i18n.lantop",locale)%></th>
					</sec:accesscontrollist>
					<sec:accesscontrollist hasPermission="3"
						domainObject="LantopFieldMapSetManage_datagrid_TGT_ARCHIVE_CLASS_ID">
						<th
							data-options="field:'TGT_ARCHIVE_CLASS_ID', halign:'center', align:'center', sortable:false,hidden:true"
							width="100" title="目标节点ID">目标节点ID</th>
					</sec:accesscontrollist>
					<sec:accesscontrollist hasPermission="3"
										   domainObject="LantopFieldMapSetManage_datagrid_TGT_ARCHIVE_CLASS_ID">
						<th
								data-options="field:'TGT_TABLE_NAME_NEW', halign:'center', align:'center', sortable:false"
								width="100" title="所属全宗">所属全宗</th>
					</sec:accesscontrollist>
				</tr>
			</thead>
		</table>
	</div>
</body>
</html>
